package com.banksoft.front.bean;

import com.banksoft.admin.entity.Order;

import java.util.Comparator;

/**
 * Created by vanjoger on 2017/3/18.
 */
public class OrderCompare implements Comparator{
    @Override
    public int compare(Object o1, Object o2) {
        Order order1 = (Order) o1;
        Order order2 = (Order) o2;
        return order1.getCreateTime().compareTo(order2.getCreateTime());
    }
}
